﻿using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CaltechSoft.Service.EntityFW.Entity
{
    public class Procedure : Entity
    {
        public string ProcedureName { get; set; }

        public string Note { get; set; }

        public string Temperature { get; set; }

        public string Humidity { get; set; }

        [ForeignKey("UpdatedBy")]
        public virtual User ApproveUser { get; set; }
        public virtual Collection<ProcedureItem> Items { get; set; }
    }

    public class ProcedureItem : Entity
    {
        public int ProcedureId { get; set; }
        public int StandardId { get; set; }
        public string StandardNo { get; set; }

        public virtual Procedure Procedure { get; set; }
        [ForeignKey("StandardId")]
        public virtual CertificateStandard CertificateStandard { get; set; }
    }
}
